<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/include.jsp"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>账户信息</title>
</head>
<body>
<div class="main">
<div class="main_title"><b>你当前的位置</b>：账户管理-查看账户</div>

<table align="center"  cellpadding="1" cellspacing="1" class="tablelist">
	<tr class="listr2">
		<td width="30%" align="right">账户名 </td>
		<td align="left" class="listr5"><s:property value="user.name"/></td>
	</tr>
	<tr class="listr2">
		<td width="30%" align="right">是否启用 </td>
		<td align="left" class="listr5">
		<s:if test="user.enabled == true">是</s:if>
		<s:else>否</s:else>
		</td>
	</tr>
	<tr class="listr2">
		<td width="30%" align="right">邮箱 </td>
		<td align="left" class="listr5"><s:property value="user.email"/></td>
	</tr>
	<tr class="listr2">
		<td width="30%" align="right">创建日期 </td>
		<td align="left" class="listr5"><s:property value="user.addDate"/></td>
	</tr>
	<tr class="listr2">
		<td width="30%" align="right" ><br/>我的角色 </td>
		<td align="left" class="listr5">
			<ul>
				<s:iterator value="hasroles">
					<li>
						<s:property value="detail"/>(<s:property value="name"/>)
						<s:if test="canUse == true">可用</s:if>
						<s:else>不可用</s:else>
						<s:if test="canGrant == true">可分配</s:if>
						<s:else>不可分配</s:else>
					</li>	
				</s:iterator>
			</ul>
		</td>	
	</tr>
	<tr class="listr4">    		
		<td colspan="2">
			<s:form action ="addOrUpdate!input.action" namespace="/user">
				<s:hidden name="user.id"/>
				<s:submit cssClass="btn" onmouseover="this.className='btn_hover'" onmouseout="this.className='btn'" value="修改" ></s:submit>
				<input name="back" type="button" class="btn" onmouseover="this.className='btn_hover'" onmouseout="this.className='btn'" value="返回" onclick="location.href='user!listUserPage.action'" />
			</s:form>
		</td>	
	</tr>
</table>	
</div>	
</body>
</html>